#define WIDTH  256
#define HEIGHT 256

typedef struct {
    unsigned char r;
    unsigned char g;
    unsigned char b;
} RGB;

typedef struct {
    float c;  // Cyan [0.0, 1.0]
    float m;  // Magenta [0.0, 1.0]
    float y;  // Yellow [0.0, 1.0]
    float k;  // Black [0.0, 1.0]
} CMYK;

void rgb_to_cmyk(RGB input[HEIGHT][WIDTH], CMYK output[HEIGHT][WIDTH]);
